package com.cloud.check.api.mapper;

import com.cloud.check.api.bean.RecCheckCriteriaBean;
import com.cloud.check.api.bean.RecCheckSearchBean;
import com.cloud.check.api.entity.RecCheck;
import com.cloud.check.api.provider.CheckPageProvider;
import com.cloud.check.common.utils.BaseMapperHelper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.Date;
import java.util.List;

public interface RecCheckMapper  extends BaseMapperHelper<RecCheck> {

    @SelectProvider(type = CheckPageProvider.class, method = "listPage")
    @Results({@Result(property = "recId", column = "rec_id", javaType = Long.class),
            @Result(property = "taskNum", column = "task_num", javaType = String.class),
            @Result(property = "checkMode", column = "check_mode", javaType = String.class),
            @Result(property = "checkForm", column = "check_form", javaType = String.class),
            @Result(property = "superviseItemImplement", column = "supervise_item_implement", javaType = String.class),
            @Result(property = "checkDate", column = "check_date", javaType = String.class),
            @Result(property = "checkType", column = "check_type", javaType = String.class),
    })
    List<RecCheckSearchBean> listPage(RecCheckCriteriaBean criteria);

}
